#pragma once

namespace FaceType {
	enum Type {
		Man,
		Woman
	};
}

class hud
{
private:
	FaceType::Type faceType;
	int frame;
	int frameCnt;
	std::vector<sf::Sprite> frames;
	sf::Image image;
	sf::Clock hud_timer;
	sf::Image podkladka_img;
	sf::Sprite podkladka_spr;

	bool loaded;
	bool special;
	bool jumping;

	int default_frame;
public:
	void load(FaceType::Type fType, int spriteWidth, int spriteHeight);
	void draw(int rightBorder);
	void setSpecialFrame(int frm, bool jumping=true);
	void step();
	void set_default_frame(int def) { default_frame = def; }
};

extern hud man;
extern hud woman;